﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MediaDefinitionAuditsViewModel.cs" company="DST Nexdox">
//   Copyright (c) DST Nexdox. All rights reserved.
// </copyright>
// <summary>
//   Defines the MediaDefinitionAuditsViewModel type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DocProcessingWorkflow.Models.JobsAdmin
{
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Entities;

  public class MediaDefinitionAuditsViewModel
  {
    public MediaDefinitionAuditsViewModel()
    {
      this.Audits = new List<MediaDefinitionAuditViewModel>();
    }

    public List<MediaDefinitionAuditViewModel> Audits { get; private set; }

    public void AddAudits(IEnumerable<MediaDefinitionAuditEntity> mediaDefinitionAudits)
    {
      foreach (MediaDefinitionAuditEntity audit in mediaDefinitionAudits)
      {
        var auditViewModel = new MediaDefinitionAuditViewModel(audit);
        this.Audits.Add(auditViewModel);
      }
    }
  }
}